package com.itheima.test5;

public class Test5Innerclass {
    public static void main(String[] args) {
        /*InterImper i = new InterImper();
        i.show();*/

        Inter i = new Inter() {
            @Override
            public void show() {
                System.out.println("匿名内部类方式中的show方法");
            }
            @Override
            public void show1() {
                System.out.println("show1...");
            }
            @Override
            public void show2() {
                System.out.println("show2...");
            }
        };
        i.show();
        i.show1();
        i.show2();
    }
}
interface Inter{
    public abstract void show();
    public abstract void show1();
    public abstract void show2();
}
class InterImper implements Inter {
    @Override
    public void show() {
        System.out.println("show...");
    }

    @Override
    public void show1() {

    }

    @Override
    public void show2() {

    }
}
